package com.benshou.bcss.common.redisson.config.props;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

/**
 * Redisson 属性
 *
 * @author <a href="mailto:liuzhenbang@benshou.com">Liu Zhenbang</a>
 */
@ConfigurationProperties(prefix = "spring.data.redis")
@Data
@Validated
public class RedissonRedisProps {

    /**
     * 服务地址
     */
    @NotBlank
    private String host;

    /**
     * 端口号
     */
    @NotNull
    private Integer port;

    /**
     * 用户名
     */
    @NotBlank
    private String username;

    /**
     * 密码
     */
    private String password;
}
